/**
 * @projectName study-note
 * @package Interpreter
 * @className Interpreter.Scale
 */
package Interpreter;

/**
 * Scale
 * @description 音阶类
 * @author answer_wx
 * @date 2022/7/6 15:29
 * @version 1.0
 */
public class Scale extends AbstractExpression {
    @Override
    public void execute(String key, double value) {
        String scale = "";
        switch ((int) value) {
            case 1:
                scale = "低音";
                break;
            case 2:
                scale = "中音";
                break;
            case 3:
                scale = "高音";
                break;
            default:
                break;
        }
        System.out.print(scale + " ");
    }
}